package com.edu.zju.scs.panacea.entity.exposure;

import io.swagger.models.auth.In;

/**
 * @Author: Yue Liang
 * @Date: 2019-02-09 01:02
 */
public class DevPortrayalData {
    /**
     * 设备ID
     */
    private String devId;

    /**
     * 女性人数
     */
    private Integer sexANum = 0;


    /**
     * 男性人数
     */
    private Integer sexBNum= 0;

    private Integer ageANum = 0;

    private Integer ageBNum = 0;

    private Integer ageCNum = 0;

    private Integer ageDNum = 0;

    private Integer ageENum = 0;

    private Integer marriageANum = 0;

    private Integer marriageBNum = 0;

    private Integer educationANum = 0;

    private Integer educationBNum = 0;

    private Integer educationCNum = 0;

    private Integer educationDNum = 0;

    private Integer educationENum = 0;

    private Integer educationFNum = 0;

    /**
     *理财关注度
     */
    private Integer manageMoney = 0;

    /**
     *娱乐关注度
     */
    private Integer recreation = 0;

    /**
     *游戏关注度
     */
    private Integer game = 0;

    /**
     *购物关注度
     */
    private Integer shopping = 0;

    /**
     *出行关注度
     */
    private Integer trip = 0;

    /**
     *汽车关注度
     */
    private Integer car = 0;

    /**
     *母婴关注度
     */
    private Integer infantMom = 0;

    /**
     *社交关注度
     */
    private Integer socialContact = 0;

    /**
     *运动关注度
     */
    private Integer sport = 0;

    /**
     *生活关注度
     */
    private Integer life = 0;

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public Integer getSexANum() {
        return sexANum;
    }

    public void setSexANum(Integer sexANum) {
        this.sexANum = sexANum;
    }

    public Integer getSexBNum() {
        return sexBNum;
    }

    public void setSexBNum(Integer sexBNum) {
        this.sexBNum = sexBNum;
    }

    public Integer getAgeANum() {
        return ageANum;
    }

    public void setAgeANum(Integer ageANum) {
        this.ageANum = ageANum;
    }

    public Integer getAgeBNum() {
        return ageBNum;
    }

    public void setAgeBNum(Integer ageBNum) {
        this.ageBNum = ageBNum;
    }

    public Integer getAgeCNum() {
        return ageCNum;
    }

    public void setAgeCNum(Integer ageCNum) {
        this.ageCNum = ageCNum;
    }

    public Integer getAgeDNum() {
        return ageDNum;
    }

    public void setAgeDNum(Integer ageDNum) {
        this.ageDNum = ageDNum;
    }

    public Integer getAgeENum() {
        return ageENum;
    }

    public void setAgeENum(Integer ageENum) {
        this.ageENum = ageENum;
    }

    public Integer getMarriageANum() {
        return marriageANum;
    }

    public void setMarriageANum(Integer marriageANum) {
        this.marriageANum = marriageANum;
    }

    public Integer getMarriageBNum() {
        return marriageBNum;
    }

    public void setMarriageBNum(Integer marriageBNum) {
        this.marriageBNum = marriageBNum;
    }

    public Integer getEducationANum() {
        return educationANum;
    }

    public void setEducationANum(Integer educationANum) {
        this.educationANum = educationANum;
    }

    public Integer getEducationBNum() {
        return educationBNum;
    }

    public void setEducationBNum(Integer educationBNum) {
        this.educationBNum = educationBNum;
    }

    public Integer getEducationCNum() {
        return educationCNum;
    }

    public void setEducationCNum(Integer educationCNum) {
        this.educationCNum = educationCNum;
    }

    public Integer getEducationDNum() {
        return educationDNum;
    }

    public void setEducationDNum(Integer educationDNum) {
        this.educationDNum = educationDNum;
    }

    public Integer getEducationENum() {
        return educationENum;
    }

    public void setEducationENum(Integer educationENum) {
        this.educationENum = educationENum;
    }

    public Integer getEducationFNum() {
        return educationFNum;
    }

    public void setEducationFNum(Integer educationFNum) {
        this.educationFNum = educationFNum;
    }

    public Integer getManageMoney() {
        return manageMoney;
    }

    public void setManageMoney(Integer manageMoney) {
        this.manageMoney = manageMoney;
    }

    public Integer getRecreation() {
        return recreation;
    }

    public void setRecreation(Integer recreation) {
        this.recreation = recreation;
    }

    public Integer getGame() {
        return game;
    }

    public void setGame(Integer game) {
        this.game = game;
    }

    public Integer getShopping() {
        return shopping;
    }

    public void setShopping(Integer shopping) {
        this.shopping = shopping;
    }

    public Integer getTrip() {
        return trip;
    }

    public void setTrip(Integer trip) {
        this.trip = trip;
    }

    public Integer getCar() {
        return car;
    }

    public void setCar(Integer car) {
        this.car = car;
    }

    public Integer getInfantMom() {
        return infantMom;
    }

    public void setInfantMom(Integer infantMom) {
        this.infantMom = infantMom;
    }

    public Integer getSocialContact() {
        return socialContact;
    }

    public void setSocialContact(Integer socialContact) {
        this.socialContact = socialContact;
    }

    public Integer getSport() {
        return sport;
    }

    public void setSport(Integer sport) {
        this.sport = sport;
    }

    public Integer getLife() {
        return life;
    }

    public void setLife(Integer life) {
        this.life = life;
    }

    public void addAgeNum(Integer age) {
        if (age == null) {
            return;
        }
        if (age <= 20) {
            ageANum ++;
        } else if (age <= 40) {
            ageBNum ++;
        } else if (age <= 60) {
            ageCNum ++;
        } else if (age <= 80) {
            ageDNum ++;
        } else {
            ageENum ++;
        }
    }

    public void addMarriageNum(Integer marriage) {
        if (marriage == null) {
            return;
        }
        if (marriage == 0) {
            marriageANum ++;
        } else {
            marriageBNum ++;
        }
    }

    public void addSexNum(Integer sex) {
        if (sex == null) {
            return;
        }
        if (sex == 0) {
            sexANum ++;
        } else {
            sexBNum ++;
        }
    }

    public void addEducationNum(Integer education) {
        if (education == null) {
            return;
        }
        if (education == 0) {
            educationANum ++;
        } else if (education == 1) {
            educationBNum ++;
        }
        else if (education == 2) {
            educationCNum ++;
        }
        else if (education == 3) {
            educationDNum ++;
        }
        else if (education == 4) {
            educationENum ++;
        }
        else if (education == 5) {
            educationFNum ++;
        }

    }

    public void add(DevPortrayalData devPortrayalData) {
        this.ageANum += devPortrayalData.getAgeANum();
        this.ageBNum += devPortrayalData.getAgeBNum();
        this.ageCNum += devPortrayalData.getAgeCNum();
        this.ageDNum += devPortrayalData.getAgeDNum();
        this.ageENum += devPortrayalData.getAgeENum();
        this.marriageANum += devPortrayalData.getMarriageANum();
        this.marriageBNum += devPortrayalData.getMarriageBNum();
        this.sexANum += devPortrayalData.getSexANum();
        this.sexBNum += devPortrayalData.getSexBNum();
        this.educationANum += devPortrayalData.getEducationANum();
        this.educationBNum += devPortrayalData.getEducationBNum();
        this.educationCNum += devPortrayalData.getEducationCNum();
        this.educationDNum += devPortrayalData.getEducationDNum();
        this.educationENum += devPortrayalData.getEducationENum();
        this.educationFNum += devPortrayalData.getEducationFNum();
        this.manageMoney += devPortrayalData.getManageMoney();
        this.recreation += devPortrayalData.getRecreation();
        this.game += devPortrayalData.getGame();
        this.trip += devPortrayalData.getTrip();
        this.car += devPortrayalData.getCar();
        this.infantMom += devPortrayalData.getInfantMom();
        this.socialContact += devPortrayalData.getSocialContact();
        this.shopping += devPortrayalData.getShopping();
        this.sport += devPortrayalData.getSport();
        this.life += devPortrayalData.getLife();
    }
}
